﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html lang="en">
<head>
<base href="<%=basePath%>">
<!-- jsp文件头和头部 -->
<%@ include file="../../system/main/main_top.jsp"%>
</head>
<body>
<div class="container-fluid" id="main-container">
	<div id="page-content" class="clearfix">
		<div class="page-header position-relative">
			<h1>
				后台首页 <small><i class="icon-double-angle-right"></i> </small>
			</h1>
		</div>
		<!--/page-header-->
		<div class="row-fluid">
			<!-- PAGE CONTENT BEGINS HERE -->
			<div class="alert alert-block alert-success">
				 <button type="button" class="close" data-dismiss="alert"><i class="icon-remove"></i></button>
				 <i class="icon-ok green"></i> 欢迎来到 <strong class="green">商户后台管理系统 <small>(v1.0)</small></strong>，首页视图.
			</div>
			
			<div class="space-6"></div>
			<div class="row-fluid">
			 <div class="span7 infobox-container">
				<div class="infobox infobox-green">
					<div class="infobox-icon"><i class="icon-comments"></i></div>
					<div class="infobox-data">
						<span class="infobox-data-number">
							<c:if test="${pd.is_admin == 1}">
								${pd.member_count }
							</c:if>
							<c:if test="${pd.is_admin == 0}">
								${pd.favorite_count }
							</c:if>
						</span>
						<span class="infobox-content">关注商户总人数</span>
					</div>
				</div>
				
				<div class="infobox infobox-pink">
					<div class="infobox-icon"><i class="icon-shopping-cart"></i></div>
					<div class="infobox-data">
						<span class="infobox-data-number">${pd.today_order_count }</span>
						<span class="infobox-content">今日订单</span>
					</div>
					<div class="badge badge-success">昨日订单:${pd.yes_order_count }</div>
				</div>
				
				<div class="infobox infobox-blue">
					<div class="infobox-icon"><i class="icon-twitter"></i></div>
					<div class="infobox-data">
						<span class="infobox-data-number">${pd.today_gift_count }</span>
						<span class="infobox-content">今日礼单</span>
					</div>
					<div class="badge badge-success">昨日礼单:${pd.yes_gift_count }</div>
				</div>
				
				<div class="infobox infobox-red">
					<div class="infobox-icon"><i class="icon-beaker"></i></div>
					<div class="infobox-data">
						<span class="infobox-data-number">${pd.store_number }</span>
						<span class="infobox-content">酒水库存数量</span>
					</div>
				</div>
				
				<div class="infobox infobox-orange2">
					<div class="infobox-chart">
						<span class="sparkline" data-values="196,128,202,177,154,94,100,170,224"></span>
					</div>
					<div class="infobox-data">
						<span class="infobox-data-number">${pd.marketing_mgr_count }</span>
						<span class="infobox-content">营销经理数量</span>
					</div>
					<!-- <div class="badge badge-success">7.2% <i class="icon-arrow-up"></i></div> -->
				</div>
				
				
				<div class="infobox infobox-blue2">
					<!-- <div class="infobox-progress">
						<div class="easy-pie-chart percentage" data-percent="42" data-size="46"><span class="percent">42</span>
						</div>
					</div> -->
					<div class="infobox-data">
						<span class="infobox-data-number">${pd.table_count }</span>
						<span class="infobox-content">商户桌台数量<span class="approx"></span></span>
					</div>
				</div>
				
				<!-- <div class="space-6"></div>
				
				<div class="infobox infobox-small infobox-dark infobox-green">
					<div class="infobox-progress">
						<div class="easy-pie-chart percentage" data-percent="61" data-size="39">
							<span class="percent">100</span>%
						</div>
					</div>
					<div class="infobox-data">
						<span class="infobox-content"><b>预留1</b></span>
						<br />
						<span class="infobox-content">Completion</span>
					</div>
				</div>
				
				<div class="infobox infobox-small infobox-dark infobox-blue">
					<div class="infobox-chart">
						<span class="sparkline" data-values="3,4,2,3,4,4,2,2"></span>
					</div>
					<div class="infobox-data">
						<span class="infobox-content"><b>预留2</b></span>
						<br />
						<span class="infobox-content">8888</span>
					</div>
				</div>
				
				<div class="infobox infobox-small infobox-dark infobox-grey">
					<div class="infobox-icon"><i class="icon-download-alt"></i></div>
					<div class="infobox-data">
						<span class="infobox-content"><b>预留3</b></span>
						<br />
						<span class="infobox-content">8888</span>
					</div>
				</div> -->
			 </div>
			 
			 <div class="vspace"></div>
			 <!-- <div class="span5">
				<div class="widget-box">
					<div class="widget-header widget-header-flat widget-header-small">
						<h5><i class="icon-signal"></i> Traffic Sources</h5>
						<div class="widget-toolbar no-border">
							<button class="btn btn-minier btn-primary dropdown-toggle" data-toggle="dropdown">本周 <i class="icon-angle-down icon-on-right"></i></button>
							<ul class="dropdown-menu dropdown-info pull-right dropdown-caret">
								<li class="active"><a href="#">本周</a></li>
								<li><a href="#">上周</a></li>
								<li><a href="#">本月</a></li>
								<li><a href="#">上月</a></li>
							</ul>
						</div>
					</div>
					
					<div class="widget-body">
					 <div class="widget-main">
						<div id="piechart-placeholder"></div>
						<div class="hr hr8 hr-double"></div>
						<div class="clearfix">
							<div class="grid3">
								<span class="grey"><i class="icon-facebook-sign icon-2x blue"></i> &nbsp; likes</span>
								<h4 class="bigger pull-right">1,255</h4>
							</div>
							
							<div class="grid3">
								<span class="grey"><i class="icon-twitter-sign icon-2x purple"></i> &nbsp; tweets</span>
								<h4 class="bigger pull-right">941</h4>
							</div>
							
							<div class="grid3">
								<span class="grey"><i class="icon-pinterest-sign icon-2x red"></i> &nbsp; pins</span>
								<h4 class="bigger pull-right">1,050</h4>
							</div>
						</div>
					 </div>/widget-main
					</div>/widget-body
				</div>/widget-box
			 </div>/span -->
			</div><!--/row-->

			<div class="space-6"></div>
			<%-- <div class="row-fluid">
				<%
					String strXML = "";
			
					strXML += "<graph caption='对比表' xAxisName='月份' yAxisName='值' decimalPrecision='0' formatNumberScale='0'>";
					strXML += "<set name='1月份' value='462' color='AFD8F8'/>";
					strXML += "<set name='2月份' value='857' color='F6BD0F'/>";
					strXML += "<set name='3月份' value='671' color='8BBA00'/>";
					strXML += "<set name='4月份' value='494' color='FF8E46'/>";
					strXML += "<set name='5月份' value='761' color='008E8E'/>";
					strXML += "<set name='6月份' value='960' color='D64646'/>";
					strXML += "<set name='7月份' value='629' color='8E468E'/>";
					strXML += "<set name='8月份' value='622' color='588526'/>";
					strXML += "<set name='9月份' value='376' color='B3AA00'/>";
					strXML += "<set name='10月份' value='494' color='008ED6'/>";
					strXML += "<set name='11月份' value='761' color='9D080D'/>";
					strXML += "<set name='12月份' value='960' color='A186BE'/>";
					strXML += "</graph>";
					//Create the chart - Column 3D Chart with data from strXML variable using dataXML method
				%>
				<div class="center">
					<div style="float:left;">
						<table>
							<tr>
								<td>
									<jsp:include page="../../FusionChartsHTMLRenderer.jsp" flush="true">
										<jsp:param name="chartSWF" value="static/FusionCharts/Doughnut2D.swf" />
										<jsp:param name="strURL" value="" />
										<jsp:param name="strXML" value="<%=strXML%>" />
										<jsp:param name="chartId" value="myNext" />
										<jsp:param name="chartWidth" value="500" />
										<jsp:param name="chartHeight" value="300" />
										<jsp:param name="debugMode" value="false" />
									</jsp:include>
								</td>
							</tr>
						</table>
					</div>
				</div>
			</div> --%>
		</div>
	<!--/row-->
	</div>
<!-- #main-content -->
</div>

<!--/.fluid-container#main-container-->
<a href="#" id="btn-scroll-up" class="btn btn-small btn-inverse"> <i
	class="icon-double-angle-up icon-only"></i>
</a>
<!-- basic scripts -->
<script src="static/1.9.1/jquery.min.js"></script>
<script type="text/javascript">
	window.jQuery
			|| document
					.write("<script src='static/js/jquery-1.9.1.min.js'>\x3C/script>");
</script>

<script src="static/js/bootstrap.min.js"></script>
<!-- page specific plugin scripts -->

<!--[if lt IE 9]>
	<script type="text/javascript" src="static/js/excanvas.min.js"></script>
	<![endif]-->
<script type="text/javascript" src="static/js/jquery-ui-1.10.2.custom.min.js"></script>
<script type="text/javascript" src="static/js/jquery.ui.touch-punch.min.js"></script>
<script type="text/javascript" src="static/js/jquery.slimscroll.min.js"></script>
<script type="text/javascript" src="static/js/jquery.easy-pie-chart.min.js"></script>
<script type="text/javascript" src="static/js/jquery.sparkline.min.js"></script>
<script type="text/javascript" src="static/js/jquery.flot.min.js"></script>
<script type="text/javascript" src="static/js/jquery.flot.pie.min.js"></script>
<script type="text/javascript" src="static/js/jquery.flot.resize.min.js"></script>
<!-- ace scripts -->
<script src="static/js/ace-elements.min.js"></script>
<script src="static/js/ace.min.js"></script>
<!-- inline scripts related to this page -->


<script type="text/javascript">
	$(top.hangge());
</script>
</body>
</html>
